package by.cooker.chat.logic;

/**
 * @author cooker
 */
public class User
{
	private String channel;

	private String host;

	private String login;

	private char[] password;

	private int port;

	/**
	 * User constructor.
	 * 
	 * @param login
	 *            - user name.
	 * @param password
	 *            - user password.
	 * @param host
	 *            - server host or server IP address.
	 * @param channel
	 *            - home channel.
	 */
	public User(String login, char[] password, String host, int port,
			String channel)
	{
		this.login = login;
		this.password = password;
		this.host = host;
		this.port = port;
		this.channel = channel;
	}

	/**
	 * Get home channel.
	 * 
	 * @return channel.
	 */
	public String getChannel()
	{
		return channel;
	}

	/**
	 * Get server host.
	 * 
	 * @return server host.
	 */
	public String getHost()
	{
		return host;
	}

	/**
	 * Get user name.
	 * 
	 * @return user name.
	 */
	public String getLogin()
	{
		return login;
	}

	/**
	 * Get user password.
	 * 
	 * @return user password.
	 */
	public char[] getPassword()
	{
		return password;
	}

	/**
	 * Get server port.
	 * 
	 * @return server port.
	 */
	public int getPort()
	{
		return port;
	}

	@Override
	public String toString()
	{
		return super.toString();
	}
}
